<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>超市账单管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/public.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css"/>
</head>
<body>
<!--头部-->
<header class="publicHeader">
    <h1>超市账单管理系统</h1>

    <div class="publicHeaderR">
        <p><span>下午好！</span><span style="color: #fff21b"> ${user.userName}</span> , 欢迎你！</p>
        <a href="../../login.jsp">退出</a>
    </div>
</header>
<!--时间-->
<section class="publicTime">
    <span id="time">2015年1月1日 11:11  星期一</span>
    <a href="#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>
</section>
<!--主体内容-->
<section class="publicMian ">
    <div class="left">
        <%@include file="left.jsp"%>
    </div>
    <div class="right">
        <%@include file="right.jsp"%>
        <div class="providerView">
            <p><strong>用户编号：</strong><span>${users.userCode}</span></p>
            <p><strong>用户名称：</strong><span>${users.userName}</span></p>
            <p><strong>用户性别：</strong><span>
                <c:if test="${users.gender==1}">男</c:if>
                <c:if test="${users.gender==2}">女</c:if>
            </span></p>
            <p><strong>出生日期：</strong><span>
                <f:formatDate value="${users.birthday}" pattern="yyyy-MM-dd"></f:formatDate>
            </span></p>
            <p><strong>用户电话：</strong><span>${users.phone}</span></p>
            <p><strong>用户地址：</strong><span>${users.address}</span></p>
            <p><strong>用户类别：</strong><span>${users.role.rolename}</span></p>

            <a href="${pageContext.request.contextPath}/user/list">返回</a>
        </div>
    </div>
</section>

<script src="${pageContext.request.contextPath}/js/time.js"></script>

</body>
</html>